class Animal:
    def run(self):
        print('Animal is runing')

class Dog(Animal):
    def run(self):
        print('Dog is running')

class Cat(Animal):
    def run(self):
        print("Cat is running")

def runAnimal(Animal):
    Animal.run()

dog = Dog()
cat = Cat()
dog.run()
cat.run()

runAnimal(dog)
runAnimal(cat)
